package com.libre.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.libre.auth.entity.LoginLog;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface LoginLogService extends IService<LoginLog> {

    IPage<LoginLog> findPage(Page page, LoginLog loginLog);

    Map<String, Long> statistics();

    void saveLoginLog(HttpServletRequest request, String username);
}
